<script setup>
const scrollToSection = (sectionId) => {
  const section = document.getElementById(sectionId);
  if (section) {
    section.scrollIntoView({ behavior: 'smooth', block: 'end' });
  }
};
</script>

<template>
  <section id="home" class="hero character-bg-img1">
    <div class="hero-content" id="hero">
      <img src="https://www.yysls.cn/pc/gw/20220815175950/img/logo3_e2ad630.png" alt="logo2" class="hero-logo" />
      <h1 class="hero-title">夕阳红再就业</h1>
      <p class="hero-subtitle">夕阳红再就业，百业路远，精彩纷呈，与你同行</p>
      <div class="hero-buttons">
        <button class="btn-secondary" @click="scrollToSection('DemoVideos')">查看百业混剪</button>
        <button class="btn-primary" @click="scrollToSection('organizations')">探索百业活动</button>
        <button class="btn-secondary" @click="scrollToSection('characters')">结识百业人员</button>
      </div>
    </div>
    <div class="hero-overlay"></div>
  </section>
</template>

<style scoped>
.hero {
  height: 100vh;
  width: 100vw;
  min-height: 1080px;
  min-width: 1920px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://gitee.com/tx-feng/FengHuaWuQue/raw/Vue/Static/background/background1.avif') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.7) 0%, rgba(141, 54, 212, 0.3) 50%, rgba(74, 85, 104, 0.3) 100%);
  z-index: 2;
}

.hero-content {
  text-align: center;
  z-index: 3;
  position: relative;
}

.hero-logo {
  width: 500px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #F7FAFC, #E2E8F0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #CBD5E0;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, #F7FAFC, #E2E8F0);
  color: #2D3748;
  box-shadow: 0 4px 15px rgba(247, 250, 252, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #F7FAFC;
  border: 2px solid #F7FAFC;
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 250, 252, 0.4);
}

.btn-secondary:hover {
  background: rgba(247, 250, 252, 0.1);
  transform: translateY(-2px);
}
</style>